<script>
	export default {
		onLaunch: function(option) {
			uni.getStorage({
				key: 'local-app-style',
				success: (res) => {
					document.querySelector('page').style.setProperty('--bg-image',
						`url("${res.data.bgImage}")`)
				}
			});
		},
		onShow: function() {},
		onHide: function() {}
	}
</script>

<style lang="scss">
	@import "@/uni_modules/uview-ui/index.scss";
	@import "@/common/css/common.scss";

	page {
		--bg-image: url("@/static/index-background.jpg");
		background-image: var(--bg-image);
		background-size: 100%;
		background-origin: center;
		background-repeat: repeat-y;
	}

	.page-main {
		display: flex;
		flex-direction: column;
		padding: 30rpx;
	}
</style>

<style>
	/*每个页面公共css */
</style>